package com.example.security_demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户类对象
 *
 * @author zzh
 * @date 2022/5/11
 * @since 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_user")
public class User {

    @TableId(type = IdType.AUTO)
    private Long userId;

    private String mobile;

    private String email;

    private String password;

    private String salt;

    @TableField("enabled")
    private boolean isEnable;

    private Date createTime;

    private Date updateTime;
}
